package io.github.siltal.examsystembackend.entity;

import jakarta.persistence.*;

@Entity
@Table(name = "t_exam_questions")
public class ExamQuestion {
    @Id
    @Column(name = "id", nullable = false)
    private Integer id;

    @Lob
    @Column(name = "title", columnDefinition = "LONGTEXT")
    private String title;

    @Lob
    @Column(name = "title_img", columnDefinition = "LONGTEXT")
    private String titleImg;

    @Column(name = "type", nullable = false)
    private Integer type;

    @Column(name = "class")
    private String classField;

    @Column(name = "level")
    private String level;

    @Column(name = "disable", nullable = false)
    private Boolean disable = false;

    @Column(name = "has_img", nullable = false)
    private Boolean hasImg = false;

    @Column(name = "wrap_img", nullable = false)
    private Boolean wrapImg = false;

    @Lob
    @Column(name = "analysis", columnDefinition = "LONGTEXT")
    private String analysis;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitleImg() {
        return titleImg;
    }

    public void setTitleImg(String titleImg) {
        this.titleImg = titleImg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getClassField() {
        return classField;
    }

    public void setClassField(String classField) {
        this.classField = classField;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Boolean getDisable() {
        return disable;
    }

    public void setDisable(Boolean disable) {
        this.disable = disable;
    }

    public Boolean getHasImg() {
        return hasImg;
    }

    public void setHasImg(Boolean hasImg) {
        this.hasImg = hasImg;
    }

    public Boolean getWrapImg() {
        return wrapImg;
    }

    public void setWrapImg(Boolean wrapImg) {
        this.wrapImg = wrapImg;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

}